class Message {
    String content;
    String username;
    Date createDate;
    
    static constraints={
        content(nullable:false,size:1..1000)
        username(blank:false,maxLength:255)
    }
}
